package cn.hema.Client;


import cn.hema.model.Book;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@Slf4j
@Component
public class BookServiceFallback implements BookServiceClient {
    @Override
    public Book findById(Long id) {
        log.info("findByProductId callback");
        return null;
    }
    @Override
    public void addBook(@RequestBody Book book) {

    }

    @Override
    public void deleteBook(@PathVariable("id") Long id) {

    }

    @Override
    public void updateBook(
            @PathVariable("id") Long id,
            @RequestBody Book book) {

    }

    @Override
    public List<Book> getAllBooks() {
        return null;
    }
}